You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(server): let the CLI answer workflow questions by their exact name - #41260
When t3 workflow questions lists a question whose name starts or ends with a space and I answer it with t3 workflow signal --wait '<that name>', the CLI says Kept until a run waits for it. and the question stays open instead of the answer being delivered.
Change
The t3_workflow tool decoded wait with TrimmedNonEmptyString, so review became review before the store's exact-name lookup. wait now keeps the name as sent and still rejects a blank one. The advertised tool schema is unchanged.
Scope
Bug fix: a question that t3 workflow questions lists cannot be answered by the name it lists. It is a one-schema fix with a standalone repro below, so it needs no issue.
Verification
Linux repro: save as repro.sh and run bash repro.sh from a checkout with dependencies installed and jq (no account or provider needed)
Setup: Ubuntu 26.04, Node 26.13.1, real t3 serve, fresh isolated state on each commit.
Steps: start padded → list questions → signal --wait 'review ' → list questions → show the run.
$ rid=$(t3 workflow start padded --key padded-one --json | jq -r .run.runId)
$ t3 workflow questions --json | jq -c 'map(.name)'
["review "]
$ t3 workflow signal '{"choice":"yes"}' --run "$rid" --wait 'review '
Delivered.
$ t3 workflow questions --json | jq -c 'map(.name)'
[]
$ t3 workflow show "$rid" --json | jq -c '[.run.status, .run.result]'
["completed","done"]
The same run keeps the signal on main 12f19b8 and delivers it on 12f19b8 merged locally with 45d79b2. An AI agent ran every check: the new test in tools.test.ts fails on 887e3a5 (expected 'review' to be 'review ') and passes on 45d79b2, and vp run check:changed passes.
The schema rejects strings that are blank after trimming while preserving the original value. The test checks a trailing space and a whitespace-only value.
Workflow signals using a wait name with surrounding spaces now match the listed name exactly, and blank values are still rejected. No merge-blocking risk was identified.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the server fix and its effect: the CLI can answer workflow questions by their exact name. It matches the change, which makes the wait parameter keep leading and trailing spaces instead…
Description check
The description follows the template. It has Problem, Change, Scope, and Verification sections. The problem and change are clear. The scope explains why no issue is needed. Verification gives a standa…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the server fix and its effect: the CLI can answer workflow questions by their exact name. It matches the change, which makes the wait parameter keep leading and trailing spaces instead of trimming them. It is a conventional commit title in plain language.
Full details: Description check
Explanation
The description follows the template. It has Problem, Change, Scope, and Verification sections. The problem and change are clear. The scope explains why no issue is needed. Verification gives a standalone repro, before and after output, and the test result. It also states what was not checked (macOS and Windows). The description does not include the 'If you used an agent' model line in the expected form, but it does name the model at the end, so the required content is present.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
Register a workflow that asks review (trailing space), start it, list questions, answer using --wait 'review ', then list questions and inspect the run. Both sides ran real Linux servers and CLI processes against fresh isolated databases using the same driver.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:XS0-9 changed lines (additions + deletions).vouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When
t3 workflow questionslists a question whose name starts or ends with a space and I answer it witht3 workflow signal --wait '<that name>', the CLI saysKept until a run waits for it.and the question stays open instead of the answer being delivered.Change
The
t3_workflowtool decodedwaitwithTrimmedNonEmptyString, soreviewbecamereviewbefore the store's exact-name lookup.waitnow keeps the name as sent and still rejects a blank one. The advertised tool schema is unchanged.Scope
Bug fix: a question that
t3 workflow questionslists cannot be answered by the name it lists. It is a one-schema fix with a standalone repro below, so it needs no issue.Verification
Linux repro: save as
repro.shand runbash repro.shfrom a checkout with dependencies installed andjq(no account or provider needed)Setup: Ubuntu 26.04, Node 26.13.1, real
t3 serve, fresh isolated state on each commit.Steps: start
padded→ list questions → signal--wait 'review '→ list questions → show the run.887e3a5(base):45d79b2(fix):The same run keeps the signal on main
12f19b8and delivers it on12f19b8merged locally with45d79b2. An AI agent ran every check: the new test intools.test.tsfails on887e3a5(expected 'review' to be 'review ') and passes on45d79b2, andvp run check:changedpasses.Links: regression test
Not shown
Generated with Claude Opus 5.5 in T3 Code Nightly